package structure;

/**
 * Created by yanbin on 2017/8/17 0017.
 * 节点
 */
public class Node<T> {

    private T element;

    private Node next;

    private Node previous;

    public T getElement() {
        return element;
    }

    public void setElement(T element) {
        this.element = element;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Node getPrevious() {
        return previous;
    }

    public void setPrevious(Node previous) {
        this.previous = previous;
    }
}
